import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/index'
import Classify from '@/pages/classify'
import Shopping from '@/pages/shopping'
import Me from '@/pages/me'
import ConfirmOrder from '@/pages/confirmOrder'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: "/ConfirmOrder"
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/Classify',
      name: 'Classify',
      component: Classify
    },
    {
      path: '/Shopping',
      name: 'Shopping',
      component: Shopping
    },
    {
      path: '/Me',
      name: 'Me',
      component: Me
    },
    {
      path: '/ConfirmOrder',
      name: 'ConfirmOrder',
      component: ConfirmOrder
    },
  ]
})
